package com.design.bridge.shape;

public class BridgeDemo {
    public static void main(String[] args) {
        Platform windowsPlatform = new Windows();
        Platform linuxPlatform = new Linux();

        Shape circleOnWindows = new Circle(windowsPlatform);
        Shape circleOnLinux = new Circle(linuxPlatform);

        circleOnWindows.draw(); // Output: Drawing a circle using Windows platform.
        circleOnLinux.draw();   // Output: Drawing a circle using Linux platform.
    }
}
